import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

import { createPinia } from 'pinia'
const pinia = createPinia()

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import i18nPlugin from './plugins/i18n'
import zh from '@/utils/language/zh'
import en from '@/utils/language/en'

import Directives from '@/directives'

createApp(App)
  .use(pinia)
  .use(router)
  .use(ElementPlus)
  .use(i18nPlugin, {
    zh, en
  })
  .use(Directives)
  .mount('#app')